SOS_STRING

Section: SOS CLASS LIBRARY (3S)
Updated: 13/9/91
Index Return to Main Contents
man2html: unable to open or read file /usr/lib/ms/ms.acc
 

NAME

sos_String - predefined class sos_String  

SYNOPSIS

#include "<SOS>/include/knl_sos.h"

class sos_String : sos_Ordered_object
{
public, private set:
   sos_Int         length;

public:
   sos_Cstring     make_Cstring ();
   void            assign_Cstring (sos_Cstring);
   void            operator+= (sos_String);

   // ** Redefinitions **
   sos_Comp_result compare (sos_Ordered_object);

protected:
   static void     local_equal (sos_String, sos_Object, sos_Eq_kind);
}
 

DESCRIPTION

The class sos_String provides means for creating, removing, and manipulating persistent strings. (Methods that overwrite inherited methods are only described in the superclass, where they were inherited from - provided that they are semantically equivalent.)

assign_Cstring (s)
assigns the contents of a given C++ string s to the sos_String, discarding the former contents of this sos_String.
make_Cstring ()
instances of class sos_String may be converted explicitly into C++ strings. The appropriate amount of memory needed for the C++ string will be allocated by the method, and should be deallocated by the user.
operator+= (s)
appends the sos_String s to self.
get_length ()
returns the number of characters that make up the string contents.

The compare and equal methods are redefined according to the lexical ordering of strings.  

FILES

<SOS>/src/knl/knl.sos
SOS schema file

<SOS>/src/knl/knl_sos.h
complete schema interface

<SOS>/src/knl/knl_use.h
restricted schema interface

<SOS>/src/knl/knl_ext.h
definition of external types (automatically included by knl_use.h)

<SOS>/src/knl/knl.c
sos_String implementation

<SOS>/lib/sos.a
SOS library
 

SEE_ALSO

sos_Object(3)  

AUTHOR

Bernhard Schiefer, Dietmar Theobald


 

Index

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE_ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 00:37:57 GMT, March 30, 2022